package br.com.sistema.entity;

import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

@Entity
@Table(name="telefone")
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name="tipo_telefone", length=1, discriminatorType=DiscriminatorType.STRING)
@DiscriminatorValue("T")
public class Telefone {
	@Id
	private Integer dddid;
	@Column(name="tel_ddd", length=2)
	private String ddd;

	public Telefone() {
	}

	
}
